<?php
if ($this->admin == TRUE) {
	$this->admin = '<li><a href="/admin">Admin</a></li>';
}

$this->placeholder ( 'title' )->set ( 'Tarefas' );
$this->placeholder ( 'menu' )->set ( 

'<div id="menu">
		<ul>
			<li class="active"><a href="/tasks">Tarefas</a></li>
			<li><a href="/tasks/new">Atribuir Tarefa</a></li>
			<li><a href="/tasks/get">Tarefas Atribuídas</a></li>
			<li><a href="/tasks/active">Tarefas Activas</a></li>
			<li><a href="/tasks/closed">Tarefas Terminadas</a></li>
			' . $this->admin . '
			<li><a href="/logout">' . App_Icons::getIcon ( 'Exit', '/images/exit.png' ) . 'Sair</a></li>
		</ul>
	</div>' );

echo App_Icons::getIconTable ( 'Configure', '/images/configure.png', 'Dashboard' );
?>


<div class="entry"><br />

<table class ="dashboard_table">
	<tr>
		<th>Tarefas Atribuídas <small>(não lidas)</small></th>
		<th>Tarefas Activas</th>
		<th>Tarefas Expiradas</th>
		<th>Tarefas Terminadas</th>
	</tr>
	<tr>
		<td><?= App_Icons::getIcon ( 'Unread', '/images/unread.png',48,48 ); ?>
			<p><a href="/tasks/get">Tem <?= $this->unread; ?> tarefa(s)</a></p>
		</td>
		<td><?= App_Icons::getIcon ( 'Active', '/images/active.png',48,48 ); ?>
			<p><a href="/tasks/get">Tem <?= $this->active; ?> tarefa(s)</a></p>
		</td>
		<td><?= App_Icons::getIcon ( 'Expired', '/images/expired.png',48,48 ); ?>
			<p><a href="/tasks/get">Tem <?= $this->expired; ?> tarefa(s)</a></p>
		</td>
		<td><?= App_Icons::getIcon ( 'Finished', '/images/finished.png',48,48 ); ?>
			<p><a href="/tasks/get"><?= $this->finished; ?> tarefa(s)</a></p>
		</td>
	</tr>
</table>

<?= $this->baseUrl();?>			
</div>
